#ifndef PPL_PACKET
#define PPL_PACKET

#include <stdint.h>
#include <string.h>

#define MAX_PKT_BUFFER_SIZE 2048
//not started witf 0xff03 or 0x0f00
#define DEFAULT_PKT_STATE STATE_EthernetII

enum PktState
{
	STATE_EthernetII,
	STATE_IP,
	STATE_GRE,
	STATE_TCP,
	STATE_UDP,
	STATE_HTTP,
	STATE_HTML,
	STATE_FIN,
	STATE_FAIL
};

class Packet
{
	public:
		Packet();

		unsigned int pktTimeS;
		unsigned int pktTimeMs;
		unsigned int pktLength;
		unsigned char rawPkt[MAX_PKT_BUFFER_SIZE];

		unsigned short parsePos;

		PktState state;

		bool httpResSuc;
};

#endif
